package cn.tedu.spring.di;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserService {

//    @Autowired
    private UserDao uSerDdo;

//    @Autowired
    public void setuSerDdo(UserDao uSerDdo) {
        this.uSerDdo = uSerDdo;
    }

    @Autowired
    public UserService(UserDao uSerDdo) {
        this.uSerDdo = uSerDdo;
    }

    @Override
    public String toString() {
        return "UserService{" +
                "uSerDdo=" + uSerDdo +
                '}';
    }
}
